package com.lening.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lening.community.pojo.Area;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 行政单位信息数据访问接口
 */
public interface AreaMapper extends BaseMapper<Area> {

    /**
     * 查询行政单位信息
     * @param pid
     * @return
     */
    @Select("select * from t_area where pid = #{pid};")
    List<Area> getAreaByPid(Integer pid);
}
